<template>
	<div @click="handle">首页</div>
</template>

<script setup lang="ts">
const { proxy } = getCurrentInstance() || {}

console.log('%c [  ]-8', 'font-size:13px; background:pink; color:#bf2c9f;', proxy)
const handle = () => {
	if (proxy && proxy.$message) {
		proxy.$message('首页')
	}
}
</script>

<style lang="scss" scoped></style>
